package com.itheima;

import com.github.pagehelper.PageInfo;
import com.itheima.domain.User;
import com.itheima.service.UserService;
import com.itheima.service.impl.UserServiceImpl;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class DemoTest {
    public static void main(String[] args) {
        ApplicationContext atc=new ClassPathXmlApplicationContext("applicationContext.xml");
        UserService bean = atc.getBean(UserService.class);
        User user = bean.selectByid(1);
        System.out.println(user);
    }
}
